package flyweighgt_pattern.ex2;

/**
 * @author 申书航
 * @version 1.0
 */
public class StrongPotion implements Potion {
    @Override
    public void drink(Alchemist alchemist) {
        alchemist.setDefense(alchemist.getDefense() + 100);
        System.out.println("强化药水喝下，防御力提升100");
        System.out.println(alchemist.getName() + System.identityHashCode(this));
    }

    @Override
    public void sell(int price) {
        System.out.println("强化药水售价：" + price);
    }
}
